import axios from "axios";

export const getPermissionList = (params) => {
    return axios.request({
        url: 'acl/permission/page',
        method: 'get',
        params
    })
}

export const delPermission=(params)=>{
    return axios.request({
        url:'acl/permission/delPermission',
        method:'delete',
        params
    })
}

export const getPermissionSave=(params)=>{
    return axios.request({
        url:'acl/permission/savePermission',
        method:'post',
        data:params
    })
}

export const getPermissionUpdate=(params)=>{
    return axios.request({
        url:'acl/permission/updatePermission',
        method:'put',
        data:params
    })
}

export const PermissionList=()=>{
    return axios.request({
        url:'acl/permission/permissionList',
        method:'get',
    })
}
